<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>出库</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">出库拆盘</h1>
		</header>
		<div class="mui-content">
		
			<input id="boxCodeInput" type="text" class="mui-input-clear" placeholder="托盘条码">
			<div id='codeDiv' class="mui-slider-handle">
			</div>
			<ul id="OA_task_2" class="mui-table-view">
			</ul>
			 
		<div id="removeTmp" style="visibility: hidden;">
			     <div style="display: none;">sgj_id</div>
				<!-- <div class="mui-slider-left mui-disabled">
					<a class="mui-btn mui-btn-red">出库</a>
				</div> -->
				<div class="mui-slider-right mui-disabled">
					<a class="mui-btn mui-btn-red">出库</a>
				</div>
				<div class="mui-slider-handle">
					sgj_data
				</div> 
		</div>
				
		</div>
		<script src="../js/mui.js"></script>
		<script>
			mui.init();
		 
			var btnArray = ['确认', '取消'];
			function outDet(event) {
				var elem = this;
				mui.confirm('确认出库该条记录？', 'Hello MUI', btnArray, function(e) {
					if (e.index == 0) {
							mui.post("CoreStock/detOut", {id:elem.children[0].innerHTML}, function(response)
							{
								if(response.code != 200)
								{
									mui.confirm(response.msg);
								}
								else
								{
									queryAll();
									//document.getElementById("boxCodeInput").value=''
								}
							}, "json");
								
					} else {
						setTimeout(function() {
							mui.swipeoutClose(elem);
						}, 0);
					}
				});
			}
			mui('#OA_task_2').on('slideleft', '.mui-table-view-cell', outDet); 
			mui('#OA_task_2').on('slideright', '.mui-table-view-cell',outDet);
	
		</script>
			<script src="kjout.js"></script>
	</body>

</html>